package com.ruoyi.application.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用车申请对象 application
 * 
 * @author ruoyi
 * @date 2025-07-08
 */
public class Application extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用车申请表id */
    private Long id;

    /** 申请人 */
    @Excel(name = "申请人")
    private Long userId;

    /** 申请人姓名 */
    @Excel(name = "申请人姓名")
    private String username;

    /** 用车开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用车开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 用车结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用车结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 驾照图片 */
    @Excel(name = "驾照图片")
    private String imgUrl;

    /** 出发地 */
    @Excel(name = "出发地")
    private String departureAddr;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destinationAddr;

    /** 用车原因 */
    @Excel(name = "用车原因")
    private String reason;

    /** 申请表状态 已发起10 撤销20 审核中30 驳回40 已通过50 分配用车60 工单结束70 */
    @Excel(name = "申请表状态 已发起10 撤销20 审核中30 驳回40 已通过50 分配用车60 工单结束70")
    private String status;

    /** 分配的车辆信息 */
    @Excel(name = "分配的车辆信息")
    private Long vehicleId;

    /** 驳回原因 */
    @Excel(name = "驳回原因")
    private String rejectReason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public void setDepartureAddr(String departureAddr) 
    {
        this.departureAddr = departureAddr;
    }

    public String getDepartureAddr() 
    {
        return departureAddr;
    }

    public void setDestinationAddr(String destinationAddr) 
    {
        this.destinationAddr = destinationAddr;
    }

    public String getDestinationAddr() 
    {
        return destinationAddr;
    }

    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }

    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("imgUrl", getImgUrl())
            .append("departureAddr", getDepartureAddr())
            .append("destinationAddr", getDestinationAddr())
            .append("reason", getReason())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("vehicleId", getVehicleId())
            .append("rejectReason", getRejectReason())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
